package asoasd1212;

public class J04_SungJuk {

	//이름,국어,영어,수학을 이용해서 총점, 평균, 학점을 계산후 산출
	
	public static void main(String[] args) {
		//1.변수선언 및 초기화
		//2.성적 처리(총점,평균,학점 계산)
		//3.결과출력

		
		char name1='안',name2='현',name3='수';
		char name4='김',name5='가',name6='난';		
		
		int korean = 80;
		int english =	78;
		int math = 95;
		
		int korean1 = 60;
		int english1 =	50;
		int math1 = 99;
		
		
		int plus =korean+english+math;
		int ever=(korean+english+math)/3;
		char 학점 = (ever>=90) ? '수' :(ever>=80) ? '우':(ever>=70) ? '미': (ever>=60) ? '양':(ever<=60) ?'가' :' ';		
		
		System.out.println(name1+""+name2+""+name3);
	
		
		System.out.println(plus);
		System.out.println(ever);
		System.out.println(학점);
		
		
		int plus1 =korean1+english1+math1;
		int ever1=(korean1+english1+math1)/3;
		char 학점1 = (ever1>=90) ? '수' :(ever1>=80) ? '우':(ever1>=70) ? '미': (ever1>=60) ? '양':(ever1<=60) ?'가' :' ';		
		
		System.out.println(name4+""+name5+""+name6);
		System.out.println(plus1);
		System.out.println(ever1);
		System.out.println(학점1);
		   
		
	}

}
